﻿// DlgLibraryLen.cpp: 实现文件
//

#include "stdafx.h"
#include "GHCY.h"
#include "DlgLibraryLen.h"
#include "afxdialogex.h"


// DlgLibraryLen 对话框

IMPLEMENT_DYNAMIC(DlgLibraryLen, CDialogEx)

DlgLibraryLen::DlgLibraryLen(CWnd* pParent /*=nullptr*/)
	: CDialogEx(IDD_LIBRATYLEN, pParent)
	, m_nLength(0)
	, m_nLibraryLen(0)
	, m_nEmptyLen(0)
	, m_nXNumber(0)
	, m_nDX(0)
	, m_nTray(0)
{

}

DlgLibraryLen::~DlgLibraryLen()
{
}

void DlgLibraryLen::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_EDIT1, m_nLength);
	DDV_MinMaxInt(pDX, m_nLength, 1, 200000);
	DDX_Text(pDX, IDC_EDIT2, m_nLibraryLen);
	DDX_Text(pDX, IDC_EDIT3, m_nEmptyLen);
	DDV_MinMaxInt(pDX, m_nEmptyLen, 0, m_nLength - 1);		// 20210727 坚美货物长度只用了1mm
	DDX_Text(pDX, IDC_EDIT4, m_nXNumber);
	DDX_Text(pDX, IDC_EDIT6, m_nDX);
	DDX_Text(pDX, IDC_EDIT5, m_nTray);
}


BEGIN_MESSAGE_MAP(DlgLibraryLen, CDialogEx)
END_MESSAGE_MAP()


// DlgLibraryLen 消息处理程序

